//
//  EventViewController.h
//  jungoo
//
//  Created by Sinbad Fly on 8/24/12.
//  Copyright (c) 2012 ABOM. All rights reserved.
//

#import "BaseTableViewController.h"

enum
{
    EventForNormal = 0,
    EventForShare = 1
};

typedef NSInteger EventForMode;

@class EventViewController;

@protocol EventViewControllerDelegate <NSObject>

@optional

- (void)eventViewController:(EventViewController*)controller didSelectedWithEvent:(NSDictionary*)aEvent;

@end

@interface EventViewController : BaseTableViewController<UITableViewDataSource, UITableViewDelegate>
{
    NSMutableDictionary *dataSource;
    
    NSArray *myEvents;
    NSArray *myAttending;
    NSArray *myPending;  
    BOOL isRefresh;
    NSString *_lastFilter;
}

@property (nonatomic,retain) IBOutlet UIView *bottomBarView;
@property (assign) EventForMode mode;
@property (assign) id<EventViewControllerDelegate> delegate;

-(IBAction)CreateEventPressed:(id)sender ;
-(IBAction)AttendingPressed:(id)sender ;
-(IBAction)MyEventsPressed:(id)sender;

@property (nonatomic,assign) BOOL isRefresh;

@end
